package org.example.tx.acl;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class AccessControlEntry {

    @EqualsAndHashCode.Include
    private Integer id;
    private Integer sid;
    private Integer permissions;
    @EqualsAndHashCode.Include
    private Integer version;
    private AccessControlList acl;

    @Override
    public String toString() {
        return "{%d,%d,%d,%d}".formatted(id, sid, permissions, version);
    }
}
